import React, { memo, useEffect } from "react";
import Router from "@/router/routerBefore";
import { useDispatch } from "react-redux";
import { fetchMsgReceive } from "./store/modules/chat";

const App = memo(() => {
  const dispatch = useDispatch();
  useEffect(() => {
    dispatch(fetchMsgReceive());
  }, []);
  return <div>{Router()}</div>;
});

export default App;
